﻿<phone:PhoneApplicationPage
    x:Class="WindowsPhoneSample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:WindowsPhoneSample"
    xmlns:VirtualJoy="clr-namespace:VirtualJoystick"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Landscape" Orientation="Landscape"
    shell:SystemTray.IsVisible="True">

    <Grid>
        <VirtualJoy:VirtualJoystick Name="JoystickControl" Margin="363,133,0,0"/>
        <Button x:Name="LeftButton" Content="&lt;&lt;" HorizontalAlignment="Left" Margin="10,375,0,0" VerticalAlignment="Top" Click="LeftButton_Click"/>
        <Button x:Name="RightButton" Content="&gt;&gt;" HorizontalAlignment="Left" Height="72" Margin="190,375,0,0" VerticalAlignment="Top" Width="82" Click="RightButton_Click"/>
        <Button x:Name="BlinkersOffButton" Content="Off" HorizontalAlignment="Left" Margin="101,375,0,0" VerticalAlignment="Top" Click="BlinkersOffButton_Click"/>
        <Button x:Name="PartyButton" Content="Party" HorizontalAlignment="Left" Margin="92,301,0,0" VerticalAlignment="Top" Click="PartyButton_Click"/>
        <Slider x:Name="Trimmer" HorizontalAlignment="Left" Margin="382,27,0,0" VerticalAlignment="Top" Width="308" Height="98" SmallChange="1" Maximum="15" Value="8"/>
    </Grid>

</phone:PhoneApplicationPage>